package com.ldl.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Administrator
 * Author : L.D.L
 * E-mail : 1419485293@qq.com
 * Date : 2020年8月6日下午7:33:40
 */
public class MyFilter implements Filter{

	private static Logger log1 = LoggerFactory.getLogger(MyFilter.class) ;
	@Override
	public void destroy() {
	}

	@Override
	public void doFilter(ServletRequest arg0, ServletResponse arg1,
			FilterChain arg2) throws IOException, ServletException {
//		System.out.println("start");
//		log1.debug("start");
		arg2.doFilter(arg0, arg1);
//		System.out.println("end");
//		log1.debug("end");
	}

	@Override
	public void init(FilterConfig arg0) throws ServletException {
	}

}
